package com.offcn.feign;

import com.offcn.exception.MovieException;
import com.offcn.pojo.Movie;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "PROVIDER-MOVIE",fallback = MovieException.class)
public interface UserFeign {

    @GetMapping("/getMovie")
    public Movie getMovie();
}
